'use strict';var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(e){var m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,m,r){if(e==Array.prototype||e==Object.prototype)return e;e[m]=r.value;return e};$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var m=0;m<e.length;++m){var r=e[m];if(r&&r.Math==Math)return r}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(e,m){var r=$jscomp.propertyToPolyfillSymbol[m];if(null==r)return e[m];r=e[r];return void 0!==r?r:e[m]};
$jscomp.polyfill=function(e,m,r,h){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,r,h):$jscomp.polyfillUnisolated(e,m,r,h))};$jscomp.polyfillUnisolated=function(e,m,r,h){r=$jscomp.global;e=e.split(".");for(h=0;h<e.length-1;h++){var a=e[h];if(!(a in r))return;r=r[a]}e=e[e.length-1];h=r[e];m=m(h);m!=h&&null!=m&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,r,h){var a=e.split(".");e=1===a.length;h=a[0];h=!e&&h in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var b=0;b<a.length-1;b++){var g=a[b];if(!(g in h))return;h=h[g]}a=a[a.length-1];r=$jscomp.IS_SYMBOL_NATIVE&&"es6"===r?h[a]:null;m=m(r);null!=m&&(e?$jscomp.defineProperty($jscomp.polyfills,a,{configurable:!0,writable:!0,value:m}):m!==r&&(void 0===$jscomp.propertyToPolyfillSymbol[a]&&(r=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[a]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(a):$jscomp.POLYFILL_PREFIX+r+"$"+a),$jscomp.defineProperty(h,$jscomp.propertyToPolyfillSymbol[a],{configurable:!0,writable:!0,value:m})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(b,g){this.$jscomp$symbol$id_=b;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:g})};m.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",h=0,a=function(b){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new m(r+(b||"")+"_"+h++,b)};return a},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r<m.length;r++){var h=$jscomp.global[m[r]];"function"===typeof h&&"function"!=typeof h.prototype[e]&&$jscomp.defineProperty(h.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6",
"es3");$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};return e};$jscomp.createTemplateTagFirstArg=function(e){return e.raw=e};$jscomp.createTemplateTagFirstArgWithRaw=function(e,m){e.raw=m;return e};$jscomp.makeIterator=function(e){var m="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return m?m.call(e):$jscomp.arrayIterator(e)};$jscomp.arrayFromIterator=function(e){for(var m,r=[];!(m=e.next()).done;)r.push(m.value);return r};
$jscomp.arrayFromIterable=function(e){return e instanceof Array?e:$jscomp.arrayFromIterator($jscomp.makeIterator(e))};$jscomp.underscoreProtoCanBeSet=function(){var e={a:!0},m={};try{return m.__proto__=e,m.a}catch(r){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(e,m){e.__proto__=m;if(e.__proto__!==m)throw new TypeError(e+" is not extensible");return e}:null;
$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(e){this.yieldResult=e};
$jscomp.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(e,m){this.nextAddress=m;return{value:e}};
$jscomp.generator.Context.prototype.yieldAll=function(e,m){e=$jscomp.makeIterator(e);var r=e.next();$jscomp.generator.ensureIteratorResultIsObject_(r);if(r.done)this.yieldResult=r.value,this.nextAddress=m;else return this.yieldAllIterator_=e,this.yield(r.value,m)};$jscomp.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};
$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(e,m){this.catchAddress_=e;void 0!=m&&(this.finallyAddress_=m)};$jscomp.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0;this.finallyAddress_=e||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(e,m){this.nextAddress=e;this.catchAddress_=m||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(e){this.catchAddress_=e||0;e=this.abruptCompletion_.exception;this.abruptCompletion_=null;return e};$jscomp.generator.Context.prototype.enterFinallyBlock=function(e,m,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=e||0;this.finallyAddress_=m||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(e,m){m=this.finallyContexts_.splice(m||0)[0];if(m=this.abruptCompletion_=this.abruptCompletion_||m){if(m.isException)return this.jumpToErrorHandler_();void 0!=m.jumpTo&&this.finallyAddress_<m.jumpTo?(this.nextAddress=m.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};$jscomp.generator.Context.prototype.forIn=function(e){return new $jscomp.generator.Context.PropertyIterator(e)};
$jscomp.generator.Context.PropertyIterator=function(e){this.object_=e;this.properties_=[];for(var m in e)this.properties_.push(m);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var e=this.properties_.pop();if(e in this.object_)return e}return null};$jscomp.generator.Engine_=function(e){this.context_=new $jscomp.generator.Context;this.program_=e};
$jscomp.generator.Engine_.prototype.next_=function(e){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_);this.context_.next_(e);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(e){this.context_.start_();var m=this.context_.yieldAllIterator_;if(m)return this.yieldAllStep_("return"in m?m["return"]:function(r){return{value:r,done:!0}},e,this.context_.return);this.context_.return(e);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(e){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],e,this.context_.next_);this.context_.throw_(e);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(e,m,r){try{var h=e.call(this.context_.yieldAllIterator_,m);$jscomp.generator.ensureIteratorResultIsObject_(h);if(!h.done)return this.context_.stop_(),h;var a=h.value}catch(b){return this.context_.yieldAllIterator_=null,this.context_.throw_(b),this.nextStep_()}this.context_.yieldAllIterator_=null;r.call(this.context_,a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(m){this.context_.yieldResult=void 0,this.context_.throw_(m)}this.context_.stop_();if(this.context_.abruptCompletion_){e=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(e){this.next=function(m){return e.next_(m)};this.throw=function(m){return e.throw_(m)};this.return=function(m){return e.return_(m)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(e,m){m=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(m));$jscomp.setPrototypeOf&&e.prototype&&$jscomp.setPrototypeOf(m,e.prototype);return m};
Insticator.logger=function(){var e=function(r){r=(new RegExp("[\\?\x26]"+r+"\x3d([^\x26#]*)")).exec(window.location.href);return null===r?"":decodeURIComponent(r[1].replace(/\+/g," "))}("insticator_log"),m=Error;m.prototype.write=function(r){r=["%cInsticator%c %s","background:#5F9EA0; color:white; font: arial; border-radius: 5px; padding:2px 5px;","color:#778899;"].concat(r);if("debug"==e){var h;if(this.stack){var a=this.stack;if(a){var b=(h=-1!==navigator.userAgent.indexOf("Chrome"))?2:1;a=a.split("\n")[b];
h&&(a=0<=a.indexOf(" (")?a.split(" (")[1].substring(0,a.length-1):a.split("at ")[1]);h=a}else h="?"}else h="debug log not supported :(";r=r.concat(["\n@"+h])}console&&console.log&&(console.log.apply?console.log.apply(console,r):console.log(r))};return{logMessage:function(r){e&&m().write(Array.prototype.slice.call(arguments,0))}}}();
(function(){function e(d){var f=[],k=d.reduce(function(l,n){n=n.trafficPercent;1E-6>n&&(n=0);l+=n;f.push(l);return l},0);return 0===k?f:f.map(function(l){return l/k})}function m(d){for(var f=Math.random(),k=d.length,l=0;l<k;++l)if(f<d[l])return l;return-1}function r(d){var f=document.createElement("link");f.rel="preload";f.as="script";f.href=d;document.head&&document.head.appendChild(f)}function h(d){var f=window.document,k=f.createElement("script");k.async=!0;k.src=d;d=f.getElementsByTagName("script")[0];
(d?d.parentNode:f.head).appendChild(k)}function a(){try{for(var d=[],f=document.head.childNodes||[],k=0;k<f.length;k++)f[k].src&&d.push(f[k].src);return 0<d.filter(function(l){return(l||"").includes("files/instibid")}).length}catch(l){return!1}}Insticator.cookieUtils={setCookie:function(d,f,k){Insticator.logger.logMessage("setCookie "+d+" value "+f);var l=new Date;l.setTime(l.getTime()+864E5*k);k="expires\x3d"+l.toUTCString();document.cookie=d+"\x3d"+f+";"+k+";path\x3d/;SameSite\x3dLax"},getCookie:function(d){d+=
"\x3d";var f="";try{f=decodeURIComponent(document.cookie)}catch(n){f=document.cookie,Insticator.logger.logMessage("Not able to decode cookie ",n.message)}f=f.split(";");for(var k=0;k<f.length;k++){for(var l=f[k];" "==l.charAt(0);)l=l.substring(1);if(0==l.indexOf(d))return l.substring(d.length,l.length)}return""}};window.headerTagInjected=window.headerTagInjected||!1;window.insticator_tg=window.insticator_tg||null;window.abpStatus=window.abpStatus||!1;var b=document.currentScript&&document.currentScript.src;
window.federatedObj?window.federatedObj.adsCodeSrc=b:window.federatedObj={adsCodeSrc:b};var g=null;if("undefined"!==typeof URLSearchParams){var c=new URLSearchParams(window.location.search);g=c.get("insticator_test_group");g||(c=new URLSearchParams(window.location.href),g=c.get("insticator_test_group"))}(function(d){var f=d.adConfigGroups,k=null;if(null==g){var l=m(e(f));0<=l&&(k=f[l].id,window.insticator_tg=f[l].testGroup)}else for(l=0;l<f.length;++l){var n=f[l];if(String(n.testGroup)===g){k=n.id;
window.insticator_tg=String(n.testGroup);break}}if(null!=k&&!headerTagInjected){headerTagInjected=!0;try{var v=f.filter(function(t){return(t.branch||"").includes("legacy")}).map(function(t){return t.id}),F="comment.instiengage.com"===window.location.host;if(v.includes(k))h(d.urlPrefix+"/"+d.tagID+"/"+k+".js");else{if(b){var w=b.split("/");if("d3lcz8vpax4lo2.cloudfront.netd2f0uviei09pxb.cloudfront.net".includes(w[2])){var x=d.urlPrefix.split("/"),u=d.instBidUrlPrefix.split("/");x[2]=w[2];u[2]=w[2];
d.urlPrefix=x.join("/");d.instBidUrlPrefix=u.join("/")}}var C=d.instBidUrlPrefix+"/"+d.tagID+"/"+k+".js",z=d.urlPrefix+"/"+d.tagID+"/"+k+"-hb.js",A=d.urlPrefix+"/"+d.tagID+"/"+k+"-dmp.js",p=d.urlPrefix+"/"+d.tagID+"/"+k+"-bs.js";window.instBid=window.instBid||{que:[]};window.instBid.libLoaded||a()||(r(C),h(C));r("https://securepubads.g.doubleclick.net/tag/js/gpt.js");r(z);h(z);var q;if(null==(q=d.adConfigGroups.find(function(t){return t.id===k}))?0:q.loadBidShaping)r(p),h(p);F||(r(A),h(A))}}catch(t){h(d.urlPrefix+
"/"+d.tagID+"/"+k+".js"),console.warn("preload failed ",t)}}})(JSON.parse('{"tagID":"b1ad8512-0208-404a-8bef-42066664235a","adConfigGroups":[{"id":"51057b32-66c1-4ae3-8f1b-b0a72c7a6908","trafficPercent":20.0,"testGroup":3,"branch":"main","reloaded":1734157513396,"loadBidShaping":false},{"id":"aa582325-3434-4b31-9699-75d57cdeb68c","trafficPercent":20.0,"testGroup":2,"branch":"main","reloaded":1734157513396,"loadBidShaping":false},{"id":"abc3947b-caae-4b73-bf62-5d293f34b264","trafficPercent":20.0,"testGroup":1,"branch":"main","reloaded":1734157513396,"loadBidShaping":false},{"id":"ad021b5d-8b77-453c-bad9-96177ce3d21a","trafficPercent":20.0,"testGroup":4,"branch":"main","reloaded":1734157513396,"loadBidShaping":false},{"id":"dfc06b84-7d75-47a0-b19f-3c65ab9977b0","trafficPercent":20.0,"testGroup":0,"branch":"main","reloaded":1734157513396,"loadBidShaping":false}],"urlPrefix":"//d3lcz8vpax4lo2.cloudfront.net/header-tags","instBidUrlPrefix":"//d3lcz8vpax4lo2.cloudfront.net/files/instibid"}'))})();
window.Insticator.enableEmbed=!0;window.Insticator.accountUUID="fafaff06-d46c-4dfe-8eaa-a2d1e0de5400";window.Insticator.siteUUID="b1ad8512-0208-404a-8bef-42066664235a";window.Insticator.enableNewAuthFlow=!0;window.Insticator.enableEnhancedPageUrl=!0;
!function(){function e(h){var a=r[h];if(void 0!==a)return a.exports;a=r[h]={exports:{}};return m[h].call(a.exports,a,a.exports,e),a.exports}var m={263:function(h,a){a.T=void 0;a.T=function(b){return Object.keys(b).reduce(function(g,c){return void 0===b[c]?g:g+(""===g?"?":"\x26")+"".concat(encodeURIComponent(c),"\x3d").concat(encodeURIComponent(b[c]))},"")}},501:function(h,a){a.V=void 0;a.V=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var g=0|16*Math.random();
return("x"===b?g:8|3&g).toString(16)})}},943:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.channel=void 0;var g=b(883),c=b(497),d=b(48);a.channel=function(k){return{publish:function(){f(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},k)},subscribe:function(l){if("undefined"!=typeof window){var n=window.InsticatorXmess.channels;n[k]=n[k]||[];n[k].push(l)}},unsubscribe:function(l){if("undefined"!=typeof window){var n=window.InsticatorXmess.channels;n[k]=n[k]||[];n[k]=
n[k].filter(function(v){return v!==l})}}}};var f=function(k,l){if("undefined"!=typeof window){var n="undefined"==typeof window?null:window.name;k.frameUuid=k.frameUuid||n;n=window.InsticatorXmess.channels;n[l]&&n[l].length&&(0,g.forEach)(n[l],function(v){return v(k)});(0,d.spreadMessage)({messageId:(0,g.uuid)(),messageHeader:c.messageHeader,channelName:l,stamps:[c.xmessNodeId],payload:k})}}},959:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.log=void 0;var g=b(497);a.log=function(c,
d){"undefined"!=typeof window&&window.xmessDebug&&(console.log("".concat(window.xmessDebugId||g.xmessNodeId,": [").concat(c.channelName,"] ").concat(d," -\x3e")),console.log("  stamps:",c.stamps.join(", ")),console.log("  payload:",c.payload))}},48:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.processMessage=a.spreadMessage=void 0;var g=b(883),c=b(959);a.spreadMessage=function(d){"undefined"==typeof window||(window.top!==window.self&&(0,g.postMessage)(window.parent,d,"*"),(0,
c.log)(d,"spread"),(0,g.sendToAllIFrames)(d,"*"))};a.processMessage=function(d){(0,c.log)(d,"process");var f=d.channelName,k=window.InsticatorXmess.channels;k[f]&&(0,g.forEach)(k[f],function(l){return l(d.payload)})}},914:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.registerMessageListener=void 0;var g=b(497),c=b(883),d={stack:[],push:function(k){d.stack.push(k);100<d.stack.length&&d.stack.shift()}},f=[];h=function(k){var l=k.data||{};l.messageHeader!==g.messageHeader||l.stamps&&
-1!==l.stamps.indexOf(g.xmessNodeId)||-1!==d.stack.indexOf(l.messageId)||(d.push(l.messageId),l.stamps=l.stamps||[],l.stamps.push(g.xmessNodeId),(0,c.forEach)(f,function(n){return n(l)}))};"undefined"==typeof window||(window.addEventListener?window.addEventListener("message",h):window.attachEvent("onmessage",h));a.registerMessageListener=function(k){return f.push(k)}},497:function(h,a){var b;Object.defineProperty(a,"__esModule",{value:!0});a.setXmessNodeId=a.messageHeader=a.xmessNodeId=void 0;a.xmessNodeId=
b;a.messageHeader="xmess-v2";a.setXmessNodeId=function(g){a.xmessNodeId=b=g}},295:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.getResponseChannel=a.getRequestChannel=void 0;var g=b(943);a.getRequestChannel=function(c){return(0,g.channel)(c+"-insticator-request-channel")};a.getResponseChannel=function(c){return(0,g.channel)(c+"-insticator-response-channel")}},999:function(h,a,b){a.b=void 0;var g=b(295);a.b=function(c){var d=(0,g.getRequestChannel)(c),f=(0,g.getResponseChannel)(c);
return{make:function(){return Error("NotSupported")},handle:function(k){d.subscribe(function(l){var n=k(l.requestData);f.publish({requestId:l.requestId,responseData:n})})}}}},883:function(h,a){Object.defineProperty(a,"__esModule",{value:!0});a.forEach=a.sendToAllIFrames=a.getIFramesOnWindow=a.postMessage=a.uuid=void 0;a.uuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var d=0|16*Math.random();return("x"===c?d:8|3&d).toString(16)})};a.postMessage=function(c,
d,f){c.postMessage(d,f)};var b=function(){return Array.from(document.getElementsByTagName("iframe"))};a.getIFramesOnWindow=b;a.sendToAllIFrames=function(c,d){var f=b();g(f,function(k){k.contentWindow.postMessage(c,d)})};var g=function(c,d){for(var f=0;f<c.length;f++)d(c[f])};a.forEach=g},155:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});Object.defineProperty(a,"channel",{enumerable:!0,get:function(){return d.channel}});h=b(914);a=b(48);var g=b(497),c=b(883),d=b(943);"undefined"!=
typeof window&&(window.InsticatorXmess||(window.InsticatorXmess={channels:{}},(0,h.registerMessageListener)(a.spreadMessage),(0,h.registerMessageListener)(a.processMessage),(0,g.setXmessNodeId)((0,c.uuid)())))},14:function(h,a,b){b.r(a);var g=b(501);(0,b(999).b)("getFederatedTrackingData").handle(function(){if(window.Insticator&&window.federatedObj&&"undefined"!==window.federatedObj.pageview_id)var c=window.federatedObj;else c={pageview_id:(0,g.V)()},c=(window.federatedObj=c,c);return c})},703:function(h,
a,b){function g(c){c=c.id;window.Insticator&&!window.Insticator.enableEmbed||(function(d){var f=document.querySelector("#insticator-container.embedid-"+d+" #insticator-embed")||document.querySelector("div[embed-id\x3d'"+d+"']")||document.querySelector("#insticator-embed");f&&!f.childElementCount&&function(k,l){var n=document.createElement("iframe");n.frameBorder="0";n.scrolling="no";n.marginheight="0";n.marginwidth="0";n.topmargin="0";n.leftmargin="0";n.id="insticator-iframe";n.allowtransparency=
"true";n.title="Insticator Content Engagement Unit";n.ariaHidden=!0;k.appendChild(n);window.setTimeout(function(){var v=n.contentWindow.document.createElement("div");v.id="app";n.contentWindow.document.body.appendChild(v);v=n.contentWindow.document.createElement("script");v.type="text/javascript";v.src="https://product.instiengage.com/ceu-code/"+l+".js";n.contentWindow.document.head.appendChild(v)},500)}(f,d)}(c),"function"==typeof window.Insticator.ad.confirmEmbedUUID&&window.Insticator.ad.confirmEmbedUUID(c))}
b.r(a);b.d(a,{loadCEU:function(){return g}})},951:function(h,a,b){function g(){window.isOldCommentingRequested||(window.isOldCommentingRequested=!0,(0,c.mountScript)("https://comment.instiengage.com/live/loader/loader.js"))}b.r(a);b.d(a,{loadCommenting:function(){return g}});var c=b(924)},406:function(h,a,b){b.r(a);b.d(a,{saveAuthCallback:function(){return g}});var g=function(c){var d=c.SSOToken;window.Insticator.customSSOAuthCallback=c.openAuth;window.Insticator.publisherToken=d}},672:function(h,
a,b){b.r(a);b.d(a,{loaderEndUserProfile:function(){return c}});var g=b(924),c=function(){window.InsticatorNewProfileRequested||(window.InsticatorNewProfileRequested=!0,(0,g.mountScript)("https://end-user-profile.instiengage.com/end-user-profile/loader.js"))}},307:function(h,a,b){b.r(a);b.d(a,{loadInfiniteScroll:function(){return c}});var g=b(924),c=function(d){d=void 0===d.mode?"default":d.mode;window.Insticator.infiniteScrollEnabled=!0;var f={mode:d,products:{},units:{},registerProduct:function(k){f.products[k.product]=
{load:k.load,unload:k.unload}},registerUnit:function(k){var l=k.id;k=k.product;f.units[k]=f.units[k]||[];f.units[k].push(l)}};window.Insticator.infiniteScroll=window.Insticator.infiniteScroll||f;(0,g.mountScript)("https://product.instiengage.com/product-loader-script/infiniteScroll.js")}},762:function(h,a,b){b.r(a);b.d(a,{loadProfileApp:function(){return c}});var g=b(924),c=function(){window.InsticatorProfileRequested||(window.InsticatorProfileRequested=!0,(0,g.mountScript)("https://profile.instiengage.com/profile/loader.js"))}},
793:function(h,a,b){function g(){window.ratingsScriptRequested||(window.ratingsScriptRequested=!0,(0,c.mountScript)("https://product.instiengage.com/rating-product-scripts/vendors.js"),(0,c.mountScript)("https://product.instiengage.com/rating-product-scripts/sharedRatings.js"))}b.r(a);b.d(a,{loadRatingsScripts:function(){return g}});var c=b(924)},448:function(h,a,b){function g(){window.sentimentScriptRequested||(window.sentimentScriptRequested=!0,(0,c.mountScript)("https://product.instiengage.com/article-sentiment-scripts/sentiments.js"),
(0,c.mountScript)("https://product.instiengage.com/article-sentiment-scripts/vendors.js"))}b.r(a);b.d(a,{loadSentimentScripts:function(){return g}});var c=b(924)},5:function(h,a,b){function g(){window.trendingScriptRequested||(window.trendingScriptRequested=!0,(0,c.mountScript)("https://trending-now.instiengage.com/trending-now/loader.js"))}b.r(a);b.d(a,{loadTrendingScripts:function(){return g}});var c=b(924)},168:function(h,a,b){function g(p,q,t){var y=new Date;y.setTime(y.getTime()+864E5*t);t="expires\x3d"+
y.toUTCString();document.cookie=p+"\x3d"+q+";"+t+";path\x3d/;SameSite\x3dLax"}function c(p){p+="\x3d";var q="";try{q=decodeURIComponent(document.cookie)}catch(B){q=document.cookie,w.logger.log("Not able to decode cookie ",B.message)}q=q.split(";");for(var t=0;t<q.length;t++){for(var y=q[t];" "===y.charAt(0);)y=y.substring(1);if(0===y.indexOf(p))return y.substring(p.length,y.length)}return""}function d(){var p={_value:void 0,_listeners:[],set:function(q){p._value=q;for(var t=0;t<p._listeners.length;t++)p._listeners[t](q)},
get:function(q){if(void 0!==p._value)return q(p._value);p._listeners.push(q)}};return p}function f(){return window.Insticator&&window.Insticator.settings&&void 0!==window.Insticator.settings.visitorGeo}function k(){return window.Insticator&&window.Insticator.shared&&window.Insticator.shared.visitor&&void 0!==window.Insticator.shared.visitor.visitorGeo}function l(p){(0,v.channel)("authIframeLoaded").unsubscribe(l);p.hasUserOptIn?u.set(!1):function(q){x.get(void 0===q?function(){}:q)}(function(q){q=
q.isGdpr&&!q.gdprAllowCookie;u.set(q);(0,v.channel)("authIframeUpdateGdprStatus").publish({isConsentRequired:q,isConstentRequired:q})})}function n(){var p=this;return function(){if(document.getElementById("Insticator-Auth-Frame"))return document.getElementById("Insticator-Auth-Frame");var q=document.createElement("iframe");q.hidden=!0;q.style.display="none";q.id="Insticator-Auth-Frame";q.src="https://auth.instiengage.com/auth/index.html";document.body.appendChild(q)}(),this.checkUserData=function(q){u.get(function(t){p.processIsConsentRequired(t);
t?q():C.get(function(y){p.processUserInfoDataAfterConsent(y);q()})});!0;(0,v.channel)("shareTrackingData").subscribe(this.setUserDataOnWindow)},this.optUserIn=function(){(0,v.channel)("authIframeUpdateGdprStatus").publish({isConstentRequired:!1,isConsentRequired:!1,isUserAction:!0});C.get(p.processUserInfoDataAfterConsent)},this.processIsConsentRequired=function(q){window.Insticator.user=window.Insticator.user||{};window.Insticator.user.showGDPRMessage=q},this.processUserInfoDataAfterConsent=function(q){window.Insticator.user=
window.Insticator.user||{};window.Insticator.user.userUUID=q.cookieId;window.Insticator.user.showGDPRMessage=!1;window.Insticator.user.additionalData=(0,A.c$)()},this.setUserDataOnWindow=function(q){window.Insticator.user=window.Insticator.user||{};window.Insticator.user.userUUID=q.cookieId;window.Insticator.user.cookieId=q.cookieId;window.Insticator.user.insticatorUserUUID=q.userUUID;window.Insticator.user.additionalData=(0,A.c$)()},this}b.r(a);b.d(a,{User:function(){return n}});var v=b(155),F=b(501),
w=b(473),x=d();!function(p){function q(t){t="BE BG CZ DK DE EE IE EL ES FR HR IT CY LV LT LU HU MT NL AT PL PT RO SI SK FI SE UK GB".split(" ").includes(t);w.logger.log("Visitor gdpr",{isGdpr:t,gdprAllowCookie:!1});p({isGdpr:t,gdprAllowCookie:!1})}if(w.logger.log("Checking for visitor gdpr status"),window.Insticator&&window.Insticator.shared&&window.Insticator.shared.visitor&&void 0!==window.Insticator.shared.visitor.isGdpr&&void 0!==window.Insticator.shared.visitor.gdprAllowCookies)return w.logger.log("GDPR data was set on Insticator object",
{isGdpr:window.Insticator.shared.visitor.isGdpr,gdprAllowCookies:window.Insticator.shared.visitor.gdprAllowCookies}),p({isGdpr:window.Insticator.shared.visitor.isGdpr,gdprAllowCookies:window.Insticator.shared.visitor.gdprAllowCookies});w.logger.log("GDPR data was not set on Insticator object");f()||k()?(w.logger.log("Visitor geo was set on Insticator object"),q(f()?(w.logger.log("using user geo from window.Insticator.settings.visitorGeo",window.Insticator.settings.visitorGeo),window.Insticator.settings.visitorGeo):
k()?(w.logger.log("using user geo from window.Insticator.shared.visitor.visitorGeo",window.Insticator.shared.visitor.visitorGeo),window.Insticator.shared.visitor.visitorGeo):void 0)):(w.logger.log("Visitor geo was not set on Insticator object"),function(t){function y(){return{visitorGeo:c("plsVisitorGeo"),visitorCity:c("plsVisitorCity")}}function B(D){var E=D.visitorGeo;D=D.visitorCity;if(""===E)return w.logger.log("Vistior geo from api is empty"),void t("error");w.logger.log("Writing Geo cookies");
g("plsVisitorGeo",E,1);g("plsVisitorCity",D,1);!0;t({visitorGeo:E,visitorCity:D})}if(""!==y().visitorGeo)return w.logger.log("Geo was stored in cookies"),B(y());w.logger.log("Making call to geo API");(function(D){var E=new XMLHttpRequest;E.timeout=2E3;E.onreadystatechange=function(){4===E.readyState&&(200===E.status?(w.logger.log("Success fetchVisitorGeo"),D(JSON.parse(E.responseText))):(w.logger.log("Error fetchVisitorGeo"),D("error")))};E.onerror=function(){w.logger.log("Error fetchVisitorGeo");
D("error")};E.ontimeout=function(){w.logger.log("Timeout fetchVisitorGeo");D("error")};E.open("GET","https://geoip.instiengage.com/json/",!0);E.send(null)})(function(D){"error"===D?t("error"):B({visitorGeo:D.country_code,visitorCity:D.region_name})})}(function(t){if("error"===t)return w.logger.log("Setting default gdpr status"),p({isGdpr:!0,gdprAllowCookie:!1});q(t.visitorGeo)}))}(x.set);var u=d(),C=d();(0,v.channel)("userSessionInit").subscribe(C.set);var z=setTimeout(function(){w.logger.error("Auth Iframe failed to load");
window.Insticator.authFrameFailed=!0;u.set(!0);C.set({cookieId:(0,F.V)()})},5E3);(0,v.channel)("authIframeLoaded").subscribe(function(p){clearTimeout(z);l(p)});var A=b(96)},133:function(h,a,b){b.r(a);h=b(155);var g=b(263);(0,h.channel)("redirect-to-link").subscribe(function(c){if(c.payload){var d=c.payload;window.location.assign(d.url);c=window.location.href.split("#")[0];var f=$jscomp.makeIterator(d.url.split("#"));d=f.next().value;f=f.next().value;c===d&&f&&window.location.reload()}});(0,h.channel)("redirect-to-auth").subscribe(function(c){c=
{product:c.product,authType:c.authType,redirectUrl:window.location.href,siteUUID:window.Insticator.siteUUID,cookieId:window.Insticator.user.cookieId};window.Insticator.publisherToken&&(c.publisherToken=window.Insticator.publisherToken);window.location.assign("https://auth.instiengage.com/auth/app.html"+(0,g.T)(c))});(0,h.channel)("load-profile").subscribe(function(c){window.Insticator.load("new-profile",c)});(0,h.channel)("custom-sso-open-auth").subscribe(function(){var c=window.Insticator.customSSOAuthCallback;
c&&"function"==typeof c&&c()})},96:function(h,a){a.bv=a.lG=a.c$=void 0;a.c$=function(){try{var b=localStorage.getItem("INSTICATOR_ADDITIONAL_USER_DATA");return b?JSON.parse(window.atob(b)):{}}catch(g){return{}}};a.lG=function(b){var g=(0,a.c$)();b=Object.assign(Object.assign({},g),b);window.Insticator.user.additionalData=b;try{localStorage.setItem("INSTICATOR_ADDITIONAL_USER_DATA",window.btoa(JSON.stringify(b)))}catch(c){}};a.bv=function(){try{window.Insticator.user.additionalData={},localStorage.removeItem("INSTICATOR_ADDITIONAL_USER_DATA")}catch(b){}};
window.addEventListener("message",function(b){"INSTICATOR_SHARE_ADDITIONAL_USER_DATA"===b.data.type&&(0,a.lG)(b.data.data);"INSTICATOR_RESET_ADDITIONAL_USER_DATA"===b.data.type&&(0,a.bv)()})},473:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.logger=void 0;var g=b(378),c=window.location.href.includes("enableInsticatorLogger\x3dtrue");a.logger={log:function(d){for(var f=[],k=0;k<arguments.length;++k)f[k-0]=arguments[k];(g.isDraftMode||c)&&console.log.apply(console,["[Insticator product loader]:"].concat($jscomp.arrayFromIterable(f)))},
error:function(d){for(var f=[],k=0;k<arguments.length;++k)f[k-0]=arguments[k];(g.isDraftMode||c)&&console.error.apply(console,["[Insticator product loader]:"].concat($jscomp.arrayFromIterable(f)))}}},565:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.setupProductLoadingSequence=void 0;var g=b(587),c=b(607);a.setupProductLoadingSequence=function(){return(0,c.initPreloadStage)(g.loadOrPreloadProduct),{finishPreloadStage:c.finishPreloadStage}}},587:function(h,a,b){Object.defineProperty(a,
"__esModule",{value:!0});a.loadOrPreloadProduct=void 0;h=b(793);var g=b(448),c=b(703),d=b(951),f=b(770),k=b(5),l=b(762),n=b(406),v=b(307),F=b(672),w=b(607),x=b(421),u=b(264),C=b(216);b=b(646);var z={infiniteScroll:v.loadInfiniteScroll,rc:h.loadRatingsScripts,ru:h.loadRatingsScripts,em:c.loadCEU,ceu:c.loadCEU,su:g.loadSentimentScripts,tu:k.loadTrendingScripts,reactions:d.loadCommenting,comments:d.loadCommenting,community:d.loadCommenting,profile:d.loadCommenting,customSSO:n.saveAuthCallback,"new-profile":l.loadProfileApp,
"comments-counter":f.loadCoreCommeting,"core-commenting":f.loadCoreCommeting,"end-user-profile":F.loaderEndUserProfile,"trending-now":k.loadTrendingScripts,"article-sentiment":C.loadNewArticleSentiment,"insticator-product-group":x.loadProductGroup,"load-page":x.loadProductGroupPage,"advanced-group-layout":b.loadGroupLayout,previewModeNotice:u.loadPreviewModeNotice},A=new Map;A.set("core-commenting",!0);A.set("trending-now",!0);A.set("article-sentiment",!0);A.set("comments-counter",!0);A.set("customSSO",
!0);A.set("infiniteScroll",!0);A.set("insticator-product-group",!0);A.set("load-page",!0);A.set("advanced-group-layout",!0);var p=[];(0,w.onPreloadFinsihed)(function(){for(var q=0;q<p.length;q++)z[p[q][0]]&&z[p[q][0]](p[q][1])});a.loadOrPreloadProduct=function(q,t){var y,B,D=(null===(y=window.Insticator.preload)||void 0===y?void 0:y.isPreloadMode)&&A.get(q);(null===(B=window.Insticator.preload)||void 0===B?0:B.isPreloadMode)&&!D?p.push([q,t]):z[q]&&z[q](t)}},607:function(h,a,b){function g(f){var k,
l=null!==(k=window.Insticator.preload&&window.Insticator.preload.isPreloadMode)&&void 0!==k?k:void 0;"boolean"==typeof l&&!1===l||d.push(f)}Object.defineProperty(a,"__esModule",{value:!0});a.onPreloadFinsihed=a.finishPreloadStage=a.initPreloadStage=void 0;var c=b(941),d=[];a.initPreloadStage=function(f){window.Insticator.preload={isPreloadMode:!0,onPreloadFinished:g};(0,c.processPreloadedQueue)(f);(0,c.setUpQueueListener)(f)};a.finishPreloadStage=function(){if(window.Insticator.preload){window.Insticator.preload.isPreloadMode=
!1;for(var f=0;f<d.length;f++)d[f]();d=[]}};a.onPreloadFinsihed=g},421:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.loadProductGroupPage=a.loadProductGroup=void 0;var g=b(439);a.loadProductGroup=function(d){d&&d.id&&(0,g.renderProductGroup)({id:d.id,forceProductsRender:d.forceProductsRender,internalCall:d.internalCall,pageFromProps:{pageId:d.pageId,pageUrl:d.pageUrl,pageTitle:d.pageTitle},pageFromHeader:c})};var c={pageId:void 0,pageUrl:void 0,pageTitle:void 0};a.loadProductGroupPage=
function(d){var f;if(d){if(window.insticator_isLoadPageCalled=!0,"source"in d&&"external"===d.source)return(d=null===(f=document.querySelector('meta[property\x3d"insticator:pageId"]'))||void 0===f?void 0:f.getAttribute("content"))?void(c.pageId=d):void 0;"pageId"in d&&(c.pageId=d.pageId,c.pageUrl=d.pageUrl,c.pageTitle=d.pageTitle)}};window.Insticator._currentPage=c},770:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.loadCoreCommeting=void 0;var g=b(924);a.loadCoreCommeting=function(){window.isOldCommentingRequested||
window.isCommentingRequested||(window.isCommentingRequested=!0,(0,g.mountScript)("https://core-commenting.instiengage.com/core-commenting/loader.js"))}},646:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.loadGroupLayout=void 0;var g=b(924);a.loadGroupLayout=function(){window.isGroupLayoutRequested||(window.isGroupLayoutRequested=!0,(0,g.mountScript)("https://product.instiengage.com/product-group-layout/index.js"))}},264:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});
a.loadPreviewModeNotice=void 0;var g=b(924);a.loadPreviewModeNotice=function(){window.isPreviewNoticeRequested||(window.isPreviewNoticeRequested=!0,(0,g.mountScript)("https://product.instiengage.com/product-loader-script/previewModeNotice.js"))}},216:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.loadNewArticleSentiment=void 0;var g=b(924);a.loadNewArticleSentiment=function(){window.isNewSentimentRequested||(window.isNewSentimentRequested=!0,(0,g.mountScript)("https://article-sentiment.instiengage.com/article-sentiment/loader.js"))}},
941:function(h,a){Object.defineProperty(a,"__esModule",{value:!0});a.processPreloadedQueue=a.setUpQueueListener=void 0;a.setUpQueueListener=function(b){var g=window.Insticator.load;window.Insticator.load=function(){g.apply(this,arguments);b.apply(this,arguments)}};a.processPreloadedQueue=function(b){var g=window.Insticator.q;if(g&&0<g.length)for(var c=0;c<g.length;c++)b(g[c].t,g[c].o)}},547:function(h,a,b){var g=this&&this.__awaiter||function(F,w,x,u){return new (x||(x=Promise))(function(C,z){function A(t){try{q(u.next(t))}catch(y){z(y)}}
function p(t){try{q(u.throw(t))}catch(y){z(y)}}function q(t){var y;t.done?C(t.value):(y=t.value,y instanceof x?y:new x(function(B){B(y)})).then(A,p)}q((u=u.apply(F,w||[])).next())})};Object.defineProperty(a,"__esModule",{value:!0});a.setupProductManager=void 0;var c=b(473),d=b(912),f=b(830),k=b(771),l=b(378),n=b(702),v=function(F){try{var w=(new RegExp(F)).test(window.location.href)}catch(x){w=!1}return w};a.setupProductManager=function(){return g(void 0,void 0,void 0,function w(){var x;return $jscomp.generator.createGenerator(w,
function(u){if(1==u.nextAddress)return c.logger.log("-\x3e Setting up product manager"),u.yield((0,n.waitTillPMCDefined)(),2);x=(0,k.getProductManagerConfig)();l.isDraftMode&&window.Insticator.load("previewModeNotice",{});x&&x.groupsConfigs?(c.logger.log("Product manager config:",x),c.logger.log("Groups applied:",x.groupsConfigs),x.isCommentsCounterEnabled&&window.Insticator.load("comments-counter",{cuid:x.commentingUnitId}),function(C){var z=C.some(function(p){return p.isInfiniteScrollEnabled}),
A=568>=window.innerWidth;z&&window.Insticator.load("infiniteScroll",{});C.forEach(function(p){return g(void 0,void 0,void 0,function t(){var y;return $jscomp.generator.createGenerator(t,function(B){switch(B.nextAddress){case 1:if("MOBILE"===p.deviceType&&!A){c.logger.error('Group "'+p.id+'" not rendered: Device type is MOBILE, but current device is DESKTOP');B.jumpTo(0);break}if("DESKTOP"===p.deviceType&&A){c.logger.error('Group "'+p.id+'" not rendered: Device type is DESKTOP, but current device is MOBILE');
B.jumpTo(0);break}if(p.isInfiniteScrollEnabled&&("INLINE"!==p.layout||"NONE"!==p.trigger)){B.jumpTo(4);break}if("CONTROL_BAR"===p.trigger&&"INLINE"!==p.layout){y=v(p.urlFilter)?(c.logger.log('Group "'+p.id+'" loaded'),void window.Insticator.load("insticator-product-group",{id:p.id,internalCall:!0})):void c.logger.error('Group "'+p.id+'" not rendered: URL filter does not match current URL. Filter: '+p.urlFilter);B.jumpTo(5);break}"CUSTOM"===p.trigger&&(c.logger.log('Group "'+p.id+'" loaded'),window.Insticator.load("insticator-product-group",
{id:p.id,internalCall:!0}));if("INLINE"!==p.layout&&"BUTTON"!==p.trigger){B.jumpTo(6);break}return B.yield(g(void 0,void 0,void 0,function E(){var G;return $jscomp.generator.createGenerator(E,function(H){if(1==H.nextAddress){if(p.isDynamic||c.logger.log('Group "'+p.id+"\" is loaded in hardcode mode.\nWaiting for body code to call Insticator.load('insticator-product-group', { id: "+p.id+" })"),!p.isDynamic)return H.jumpTo(0);if(!v(p.urlFilter))return H.return(void c.logger.log('Group "'+p.id+'" not rendered: URL filter does not match current URL. Filter: '+
p.urlFilter));c.logger.log('Group "'+p.id+'" loaded in dynamic mode. '+p.selectorMode+" selector: "+p.selector);return H.yield((0,f.resolveDynamicGroupSelector)(p),3)}G=H.yieldResult;if(!G)return H.return(void c.logger.error('Group "'+p.id+'" not rendered: Could not find element to insert after. Selector '+p.selectorMode+": "+p.selector));c.logger.log('Inserted dynamic container for group "'+p.id+'" after:',G);(0,d.insertDynamicGroupContainer)(p,G);window.Insticator.load("insticator-product-group",
{id:p.id,internalCall:!0});H.jumpToEnd()})}),7);case 7:case 6:y=void 0;case 5:return B.return(y);case 4:c.logger.error('Group "'+p.id+'" not rendered: Infinite scroll is enabled, but layout is not INLINE or trigger is not NONE'),B.jumpToEnd()}})})})}(x.groupsConfigs)):c.logger.log("No product manager config found");u.jumpToEnd()})})}},912:function(h,a){Object.defineProperty(a,"__esModule",{value:!0});a.insertDynamicGroupContainer=void 0;a.insertDynamicGroupContainer=function(b,g){var c=document.createElement("div");
return c.setAttribute("class","insticator-product-group"),c.setAttribute("data-insticator-group-id",b.id),c.setAttribute("data-dynamic","true"),g.after(c),c}},771:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.getProductManagerConfig=void 0;var g=b(378),c,d=function(f){var k=[];return f.showCommenting&&k.push({product:"COMMENTING",order:f.commentingOrder}),f.showTrendingNow&&k.push({product:"TRENDING_NOW",order:f.trendingNowOrder}),f.showArticleSentiment&&k.push({product:"ARTICLE_SENTIMENT",
order:f.articleSentimentOrder}),k.sort(function(l,n){return l.order-n.order}).map(function(l){return l.product})};a.getProductManagerConfig=function(){if(window.mockInsticatorProductManagerConfig){var f=window.mockInsticatorProductManagerConfig.groupsConfigs[0];return f.draft&&(window.mockInsticatorProductManagerConfig.groupsConfigs[0]=Object.assign({id:f.id},f.draft)),window.mockInsticatorProductManagerConfig.groupsConfigs[0]=Object.assign(Object.assign({},window.mockInsticatorProductManagerConfig.groupsConfigs[0]),
{layout:"INLINE",trigger:"NONE"}),window.mockInsticatorProductManagerConfig}if(c)return c;if((f=window.Insticator.productManagerConfig)&&window.Insticator.commentingUnitId){var k={isCommentsCounterEnabled:f.commentsCounterEnabled,commentingUnitId:window.Insticator.commentingUnitId,trendingNowId:window.Insticator.trendingNowId,articleSentimentId:window.Insticator.articleSentimentId,groupsConfigs:[]};return f.groupConfigList.forEach(function(l){var n=g.isDraftMode?l.draft:l.current;if(n.groupEnabled){var v=
n.layout||"INLINE",F=n.trigger||"NONE",w=n.deviceType||"ALL";l={id:l.groupId,label:n.label,isInfiniteScrollEnabled:n.infiniteScrollEnabled,isDynamic:n.dynamicPlacement,selectorMode:n.selectorMode,selector:n.selector,urlFilter:n.urlFilter,productsOrder:d(n),layout:v,trigger:F,deviceType:w};k.groupsConfigs.push(l)}}),c=k,k}}},910:function(h,a){Object.defineProperty(a,"__esModule",{value:!0});a.appendDataParams=void 0;a.appendDataParams=function(b,g){Object.keys(g).forEach(function(c){var d=g[c];d&&
(c=c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),b.setAttribute("data-"+c,d))})}},439:function(h,a,b){var g=this&&this.__awaiter||function(v,F,w,x){return new (w||(w=Promise))(function(u,C){function z(q){try{p(x.next(q))}catch(t){C(t)}}function A(q){try{p(x.throw(q))}catch(t){C(t)}}function p(q){var t;q.done?u(q.value):(t=q.value,t instanceof w?t:new w(function(y){y(t)})).then(z,A)}p((x=x.apply(v,F||[])).next())})};Object.defineProperty(a,"__esModule",{value:!0});a.renderProductGroup=void 0;
var c=b(473),d=b(676),f=b(771),k=b(702),l=new Map;l.set("COMMENTING","core-commenting");l.set("ARTICLE_SENTIMENT","article-sentiment");l.set("TRENDING_NOW","trending-now");var n=!1;a.renderProductGroup=function(v){return g(void 0,void 0,void 0,function w(){var x,u,C,z,A,p,q,t,y;return $jscomp.generator.createGenerator(w,function(B){if(1==B.nextAddress)return B.yield((0,k.waitTillPMCDefined)(),2);x=(0,f.getProductManagerConfig)();if(!x||!x.groupsConfigs||!v)return B.return(void c.logger.error("No product manager config found or missing params"));
u=x.groupsConfigs.find(function(D){return D.id===v.id});if(!u)return B.return(void c.logger.error("No group config found for id: "+v.id));C="INLINE"===u.layout||"BUTTON"===u.trigger;if(!C&&!v.internalCall)return B.return(void c.logger.error('Group "'+u.id+'" not rendered: Group layout "'+u.layout+'" and trigger "'+u.trigger+'" does not support body code'));if(C&&!v.internalCall&&u.isDynamic)return B.return(void c.logger.error('Group "'+u.id+'" not rendered: Dynamic group .load should be called from internal dynamic insertion'));
z=568>=window.innerWidth;if("MOBILE"===u.deviceType&&!z)return B.return(void c.logger.error('Group "'+u.id+'" not rendered: Device type is MOBILE, but current device is DESKTOP'));if("DESKTOP"===u.deviceType&&z)return B.return(void c.logger.error('Group "'+u.id+'" not rendered: Device type is DESKTOP, but current device is MOBILE'));A=u.isInfiniteScrollEnabled;p=!("INLINE"===u.layout&&"NONE"===u.trigger);q="BUTTON"===u.trigger||"INLINE"===u.layout;t="INLINE"===u.layout&&!("BUTTON"===u.trigger||"CUSTOM"===
u.trigger);if(q){y=function(D,E){var G='.insticator-product-group[data-insticator-group-id\x3d"'+D+'"]';E.isDynamic&&(G+='[data-dynamic\x3d"true"]');if(E=document.querySelector(G+':not([rendered\x3d"true"]'))return E;c.logger.error("No container found for group: "+D)}(u.id,u);if(!y)return B.return(void c.logger.error("No container found for group: "+u.id));if(c.logger.log('Rendering group "'+u.id+'":',y,"\nproducts:",u.productsOrder.join(", ")),A&&!(v.pageFromProps&&v.pageFromProps.pageId&&v.pageFromProps.pageUrl&&
v.pageFromProps.pageTitle))return B.return(void c.logger.error('Missing pageId, pageUrl and pageTitle in infinite scroll body code for group "'+u.id+'"'));(t||v.forceProductsRender)&&(c.logger.log('Group "'+u.id+'" products rendere without advanced layout'),y.setAttribute("rendered","true"),u.productsOrder.forEach(function(D){var E=d.productBodyCodeRenderers[D]({pageData:A?v.pageFromProps:v.pageFromHeader});y.appendChild(E);(D=l.get(D))&&window.Insticator.load(D,{})}))}p&&(n?c.logger.error('Advanced layout already loaded once. Skipping the group "'+
u.id+'"...'):(c.logger.log('Advanced layout required for group "'+u.id+'"'),window.Insticator.load("advanced-group-layout",{id:u.id}),n=!0));B.jumpToEnd()})})}},676:function(h,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.productBodyCodeRenderers=void 0;var g=b(910),c=b(771);h=function(d){return function(f){var k,l,n,v=document.createElement("div");v.setAttribute("class",d.class);f=Object.assign(Object.assign({},null!==(k=null==f?void 0:f.pageData)&&void 0!==k?k:{}),(null===(l=d.getAdditionalDataParams)||
void 0===l?void 0:l.call(d))||{});return(0,g.appendDataParams)(v,f),d.appendToContainer&&d.appendToContainer.appendChild(v),null!==(n=d.appendToContainer)&&void 0!==n?n:v}};a.productBodyCodeRenderers={COMMENTING:h({class:"instiengage-core-commenting",getAdditionalDataParams:function(){var d,f;return{cuid:null!==(f=null===(d=(0,c.getProductManagerConfig)())||void 0===d?void 0:d.commentingUnitId)&&void 0!==f?f:""}}}),ARTICLE_SENTIMENT:h({class:"instiengage-article-sentiment",getAdditionalDataParams:function(){var d,
f;return{asuid:null!==(f=null===(d=(0,c.getProductManagerConfig)())||void 0===d?void 0:d.articleSentimentId)&&void 0!==f?f:""}}}),TRENDING_NOW:h({class:"instiengage-trending-now",getAdditionalDataParams:function(){var d,f;return{tnuid:null!==(f=null===(d=(0,c.getProductManagerConfig)())||void 0===d?void 0:d.trendingNowId)&&void 0!==f?f:""}}})};window.INSTICATOR_BODY_CODE_RENDERERS=a.productBodyCodeRenderers},830:function(h,a){var b=this&&this.__awaiter||function(g,c,d,f){return new (d||(d=Promise))(function(k,
l){function n(w){try{F(f.next(w))}catch(x){l(x)}}function v(w){try{F(f.throw(w))}catch(x){l(x)}}function F(w){var x;w.done?k(w.value):(x=w.value,x instanceof d?x:new d(function(u){u(x)})).then(n,v)}F((f=f.apply(g,c||[])).next())})};Object.defineProperty(a,"__esModule",{value:!0});a.resolveDynamicGroupSelector=void 0;a.resolveDynamicGroupSelector=function(g){return b(void 0,void 0,void 0,function d(){return $jscomp.generator.createGenerator(d,function(f){return f.return(new Promise(function(k){(function(l,
n,v){n=void 0===n?20:n;v=void 0===v?200:v;return b(void 0,void 0,void 0,function w(){return $jscomp.generator.createGenerator(w,function(x){return x.return(new Promise(function(u,C){var z=0,A=function(){var p=(q=l.selectorMode,t=l.selector,"CSS"===q?document.querySelector(t):"XPATH"===q?document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue:null),q,t;p?u(p):(z++,z<n?setTimeout(A,v):C(Error("Exceeded maximum retries.")))};A()}))})})})(g,20,200).then(function(l){return k(l)}).catch(function(){return k(null)})}))})})}},
378:function(h,a){Object.defineProperty(a,"__esModule",{value:!0});a.isDraftMode=void 0;a.isDraftMode=window.location.href.includes("insticatorPreviewMode\x3dtrue")},924:function(h,a){Object.defineProperty(a,"__esModule",{value:!0});a.mountScript=void 0;a.mountScript=function(b,g){if((void 0===g?0:g)||!document.querySelector("script[src\x3d'"+b+"']"))g=document.createElement("script"),g.src=b,document.head.appendChild(g)}},702:function(h,a,b){var g=this&&this.__awaiter||function(f,k,l,n){return new (l||
(l=Promise))(function(v,F){function w(C){try{u(n.next(C))}catch(z){F(z)}}function x(C){try{u(n.throw(C))}catch(z){F(z)}}function u(C){var z;C.done?v(C.value):(z=C.value,z instanceof l?z:new l(function(A){A(z)})).then(w,x)}u((n=n.apply(f,k||[])).next())})};Object.defineProperty(a,"__esModule",{value:!0});a.waitTillPMCDefined=void 0;var c=b(771),d=[];a.waitTillPMCDefined=function(){return g(void 0,void 0,void 0,function k(){return $jscomp.generator.createGenerator(k,function(l){return l.return(!!window.Insticator.commentingv2ConfigsSet||
!!(0,c.getProductManagerConfig)()||new Promise(function(n){window.Insticator.onCommentingV2ConfigsSet=function(){d.forEach(function(v){return v(void 0)});d=[]};d.push(n)}))})})}}},r={};e.d=function(h,a){for(var b in a)e.o(a,b)&&!e.o(h,b)&&Object.defineProperty(h,b,{enumerable:!0,get:a[b]})};e.o=function(h,a){return Object.prototype.hasOwnProperty.call(h,a)};e.r=function(h){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"});Object.defineProperty(h,
"__esModule",{value:!0})};(function(h){if(!h.Insticator.productLoaderWorked){h.Insticator.productLoaderWorked=!0;h.Insticator.enableNewAuthFlow=!0;var a=function(){e(155);e(133);e(14);var b=e(168).User;h.Insticator.user=h.Insticator.user||{userUUID:null,showGDPRMessage:null};var g=e(547).setupProductManager,c=e(565).setupProductLoadingSequence,d=c().finishPreloadStage;g();b=new b;b.checkUserData(function(){d()});h.Insticator.user.optUserIn=b.optUserIn};document.body?a():window.addEventListener("DOMContentLoaded",
a)}})(window)}();